***********************************************
* Replication Material For II Joo & Mukherjee *
*           Online Appendix Analysis          *
*            Software Used: STATA 16          *    
* Use II_Joo_Mukherjee.dta for replication    *
***********************************************

use II_Joo_Mukherjee

xtset rebid year

*** Table A1: Autocratic and Democratic Rebels Analysis ****

xtprobit autocracy centtime cent dur_exist, re vce(cluster rebid) 

xtprobit autocracy centtime cent dur_exist negotiation ceasefire rstrength, re vce(cluster rebid) 

xtprobit autocracy centtime cent dur_exist negotiation ceasefire rstrength terr mobilize, re vce(cluster rebid) 

xtprobit autocracy centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2, re vce(cluster rebid) 


*** Table A4:  binary centralization strength variable ***
xtprobit split centtime_bi cent dur_exist t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime_bi cent dur_exist negotiation ceasefire rstrength t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime_bi cent dur_exist negotiation ceasefire rstrength terr mobilize t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime_bi cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3, re vce(cluster rebid) 


*** Table A5: civil-conflict years sample ***
xtprobit split centtime cent dur_exist t1 t2 t3 if conflict==1, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength t1 t2 t3 if conflict==1, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize t1 t2 t3 if conflict==1, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3 if conflict==1, re vce(cluster rebid) 


*** Table A6: Additional Robustness Tests ***
* Model 21
xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 ngroup_country polwing state_svac_reb_lag log_os_reb log_os_gov polity2 gdp_growth t1 t2 t3, re vce(cluster rebid)

* Model 22
drop if scode==775 | scode==750
xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3, re vce(cluster rebid) 

clear 

*Model 23 
use II_Joo_Mukherjee_influence_data

xtset rebid year
drop if devres >2
xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3, re vce(cluster rebid) 

clear 

*Model 24 
use II_Joo_Mukherjee_influence_data

xtset rebid year
drop if hat >0.0123

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3, re vce(cluster rebid) 

clear

**** Table A7: Models without young groups ****

use II_Joo_Mukherjee

xtset rebid year

drop if max_year < 18.1776 - 14.27957

xtprobit split centtime cent dur_exist t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3, re vce(cluster rebid) 

clear


**** Table A8: Models withoutt old groups *****

use II_Joo_Mukherjee

xtset rebid year

drop if max_year > 59

xtprobit split centtime cent dur_exist t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize t1 t2 t3, re vce(cluster rebid) 

xtprobit split split_lag centtime cent dur_exist negotiation ceasefire rstrength terr mobilize independence logbd logbd2 t1 t2 t3, re vce(cluster rebid) 


clear


**** Table A11: Relationship between rebel age and command centralization ****

use II_Joo_Mukherjee

xtset rebid year

oprobit cent dur_exist, cluster(rebid)
xtreg dur_exist cent, mle


*** End of do File ***

